package com.cecsmsserve.service.impl;

import com.cecsmsserve.entity.SysFunction;
import com.cecsmsserve.mapper.SysFunctionMapper;
import com.cecsmsserve.service.ISysFunctionService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cecsmsserve.util.result.CommonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 王郝浠
 * @since 2024-04-18
 */
@Service
public class SysFunctionServiceImpl extends ServiceImpl<SysFunctionMapper, SysFunction> implements ISysFunctionService {

    @Autowired
    SysFunctionMapper mapper;

    @Override
    public CommonResult selectAll() {
        List<SysFunction> list=mapper.selectAll();
        return new CommonResult(list);
    }

    @Override
    public CommonResult selectByRid(int rid) {
        List<SysFunction> list=mapper.selectByRid(rid);
        return new CommonResult(list);
    }
}
